/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package UsoMetodosYVariables;

/**
 *
 * @author Dennis
 */
public class ComprobarScope {
    int test =10;
    
    void imprimirTest(){
        int test = 20;
        //mustra la varible LOCAL test=20
        System.out.println("Test: "+test);
        //muestra la variable de Instacia test=10
        //System.out.println("Test: "+this.test);
    }
    
    public static void main(String[] args) {
        ComprobarScope st = new ComprobarScope();
        st.imprimirTest();
    }
}
